win32: handle WM_DISPLAYCHANGE globally
authorPaolo Borelli <pborelli@gnome.org>
Thu, 29 Oct 2015 16:20:54 +0000 (17:20 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Sat, 31 Oct 2015 14:31:11 +0000 (15:31 +0100)
commit8606e57910fb3ea4c66448702ee7e3bb73f3c29d
treefff1a2c8b76c4f43b773d8eced7fd0896bee22a4
parente2e198aae4b6f524c30e8215d44fa7507171b36b
win32: handle WM_DISPLAYCHANGE globally

Instead of handling WM_DISPLAYCHANGE on every GdkWindow, only handle
it on an ad-hoc hidden window we create when opening the display.
This has two reasons:
1) we want emit the display::size-changed signal even if there are no
   gtk windows currently open
2) we want to emit the signal just once and not once for every window

https://bugzilla.gnome.org/show_bug.cgi?id=757324
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkdisplay-win32.h
gdk/win32/gdkevents-win32.c